package com.fer.tankr.models.enemies;

import org.andengine.extension.physics.box2d.PhysicsWorld;
import org.andengine.opengl.texture.region.ITextureRegion;
import org.andengine.opengl.vbo.VertexBufferObjectManager;

public class LeftRightEnemy extends ChangeDirectionEnemy{

	public LeftRightEnemy(PhysicsWorld world, VertexBufferObjectManager vbom,
			float x, float y, ITextureRegion texture) {
		super(world, vbom, x, y);
		attachSprite(texture, 0, 0);
	}
	
	@Override
	public void onDirection1() {
		body.setLinearVelocity(-4, 0);
	}
	
	@Override
	public void onDirection2() {
		//body.getPosition()
		body.setLinearVelocity(4, 0);
	}

	
}
